package com.example.youmishoppingmall.service;

import com.example.youmishoppingmall.bean.Goods;
import com.example.youmishoppingmall.bean.GoodsDetailExample;

import java.util.List;

public interface GoodsService {
    Integer inset(Goods goods);

    Integer insertConfigs(Integer goodsID, List<String> config);

    Integer insertColors(Integer goodsID, List<String> color);

    Integer updateById(Goods goods);

    List<GoodsDetailExample> getAll();

    List<GoodsDetailExample> search(String like);

    Integer delConfigs(Integer goodsId);

    Integer delColors(Integer goodsId);

    Integer deleteById(Integer id);
}
